<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/commons/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="${ctx}/css/main/base.css" rel="stylesheet" type="text/css"/>
<link href="${ctx}/css/main/main.css" rel="stylesheet" type="text/css"/>
<title>彩衣列表</title>
<script type="text/javascript">
function create()
{
  URL="../code/code_color_goCreate.action";
  parent.mright.location=URL;
 }
 
function delete_code(id,name)
{
msg="'确认要删除 \""+name+"\" 么？";
 if(window.confirm(msg))
 {
  URL="../code/code_color_delete.action?colorId=" + id ;
  parent.mright.location=URL;
 }
 
}</script>
<body class="m_r">
<form name="form1" method="post" action="zd_r3_13.htm" onsubmit="">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tab_m center">
  <tr>
    <td colspan="6" class="zctop left"><span class="font14 zc_bt">彩衣列表</span></td>
  </tr>
  <tr>
    <td class="bg5 font14">彩衣编码</td>
    <td class="bg5 font14">彩衣名称</td>
    <td class="bg5 font14">彩衣名称(英)</td>
    <td class="bg5 font14">彩衣图片</td>
    <td class="bg5 font14">排序号</td>
  <td class="bg5 font14">操作</td>
    </tr>
  <s:iterator value="colors" status="colors" id="color">
		 <s:hidden value="#color.colorId"></s:hidden>
  <tr>
    <td class="bg5"><s:property value="#color.colorNo" /></td>
    <td><s:property value="#color.colorName"/></td>
    <td><s:property value="#color.colorNameEn"/></td>
    <td>
     <img src="${ctx}/upload/images/color/<s:property value="#color.colorValue" ></s:property>" width="80" height="80"/>
    </td>
    <td><s:property value="#color.colorOrder"/></td>
    <td>
    <a href="ctx/../code_color_goUpdate.action?colorId=<s:property value="#color.colorId"/>" target="mright">编 辑</a>&nbsp;&nbsp;
    <a href="javascript:delete_code('<s:property value="#color.colorId"/>','<s:property value="#color.colorName"/>');" target="mright">删 除</a>
    </td>
  </tr>
   </s:iterator>
<tr>
    <td colspan="6" class="hei_1">
    <input type="button" value="新 增" class="log_f zc_b" onclick="create()"/></td>
  </tr>
</table>
</body>
</html>